package com.buba.service.impl;

import com.buba.dao.EmployeeMapper;
import com.buba.dao.RoomMapper;
import com.buba.service.RoomService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class RoomServiceImpl implements RoomService {
    @Resource
    private RoomMapper roomMapper;
    /**
     * todo 查询员工数量
     * @param floorId
     * @return
     */
    public int getRoomCountByFloorId(Integer floorId) {
        return roomMapper.getRoomCountByFloorId(floorId);
    }
    /**
     * todo 查询员工数量
     * @param floorId
     * @return
     */
    public int getRoomCountByRoomTypeId(Integer floorId) {
        return roomMapper.getRoomCountByRoomTypeId(floorId);
    }
}
